package com.ruoyi.project.property.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.ibatis.type.Alias;

import java.util.Date;

/**
 * 【请填写功能名称】对象 lab_property
 * 
 * @author ruoyi
 * @date 2019-11-16
 */
@Alias("Labproperty")
public class LabProperty extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 仪器编号 */
    @Excel(name = "仪器编号")
    private Long machineNumber;

    /** $column.columnComment */
    @Excel(name = "仪器编号")
    private String modelNumber;

    /** 资产名称 */
    @Excel(name = "资产名称")
    private String propertyName;

    /** 实验室id */
    @Excel(name = "实验室id")
    private Long labId;

    /** 资产类别 */
    @Excel(name = "资产类别")
    private Integer propertyType;


    /**
     * 添加字段
     */
    //归属实验室
    @Excel(name="归属实验室")
    private String labName;
    //资产类别名称
    @Excel(name="资产类别")
    private String propertyTypeName;

    public String getLabName() {
        return labName;
    }

    public void setLabName(String labName) {
        this.labName = labName;
    }

    public String getPropertyTypeName() {
        return propertyTypeName;
    }

    public void setPropertyTypeName(String propertyTypeName) {
        this.propertyTypeName = propertyTypeName;
    }




    /** 购置日期 */
    @Excel(name = "购置日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buyTime;

    private Date beginBuyTime;

    private Date endBuyTime;

    public Date getBeginBuyTime() {
        return beginBuyTime;
    }

    public void setBeginBuyTime(Date beginBuyTime) {
        this.beginBuyTime = beginBuyTime;
    }

    public Date getEndBuyTime() {
        return endBuyTime;
    }

    public void setEndBuyTime(Date endBuyTime) {
        this.endBuyTime = endBuyTime;
    }




    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMachineNumber(Long machineNumber) 
    {
        this.machineNumber = machineNumber;
    }

    public Long getMachineNumber() 
    {
        return machineNumber;
    }
    public void setModelNumber(String modelNumber) 
    {
        this.modelNumber = modelNumber;
    }

    public String getModelNumber() 
    {
        return modelNumber;
    }
    public void setPropertyName(String propertyName) 
    {
        this.propertyName = propertyName;
    }

    public String getPropertyName() 
    {
        return propertyName;
    }
    public void setLabId(Long labId) 
    {
        this.labId = labId;
    }

    public Long getLabId() 
    {
        return labId;
    }
    public void setPropertyType(Integer propertyType) 
    {
        this.propertyType = propertyType;
    }

    public Integer getPropertyType() 
    {
        return propertyType;
    }
    public void setBuyTime(Date buyTime) 
    {
        this.buyTime = buyTime;
    }

    public Date getBuyTime() 
    {
        return buyTime;
    }

    @Override
    public String toString() {
        return "LabProperty{" +
                "id=" + id +
                ", machineNumber=" + machineNumber +
                ", modelNumber='" + modelNumber + '\'' +
                ", propertyName='" + propertyName + '\'' +
                ", labId=" + labId +
                ", propertyType=" + propertyType +
                ", labName='" + labName + '\'' +
                ", propertyTypeName='" + propertyTypeName + '\'' +
                ", buyTime=" + buyTime +
                ", beginBuyTime=" + beginBuyTime +
                ", endBuyTime=" + endBuyTime +
                '}';
    }
}
